﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcVehicleInsurance.Models.CompanyExpense>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2 class="ico_mug">Company Expenses</h2>

    <table>
        <tr>
            <th></th>
            <th>
                CompanyID
            </th>
            <th>
                dateOfExpense
            </th>
            <th>
                typeOfExpense
            </th>
            <th>
                amountOfExpense
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.CompanyID }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.CompanyID })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.CompanyID })%>
            </td>
            <td>
                <%: item.CompanyID %>
            </td>
            <td>
                <%: item.dateOfExpense %>
            </td>
            <td>
                <%: item.typeOfExpense %>
            </td>
            <td>
                <%: item.amountOfExpense %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

